
var JiraLocalStorage = {
	setItem: function(n, v){
		var prefService = Components.classes["@mozilla.org/preferences-service;1"]
						.getService(Components.interfaces.nsIPrefService);
		var branch = prefService.getBranch("jira.");
		branch.setCharPref(n, v);
	},
	getItem: function(n){
		var prefService = Components.classes["@mozilla.org/preferences-service;1"]
						.getService(Components.interfaces.nsIPrefService);
		var branch = prefService.getBranch("jira.");
		try{
			return branch.getCharPref(n);
		} catch(e) {
			return '';
		}
	}
}
